!macro customInstall
  DetailPrint "Register myprotocols URI Handler"
  DeleteRegKey HKCR "myprotocols"
  WriteRegStr HKCR "myprotocols" "" "URL:myprotocols"
  WriteRegStr HKCR "myprotocols" "URL Protocol" ""
  WriteRegStr HKCR "myprotocols\shell" "" ""
  WriteRegStr HKCR "myprotocols\shell\Open" "" ""
  WriteRegStr HKCR "myprotocols\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
!macroend